#ifndef MICRODISPLAY_H
#define MICRODISPLAY_H

#include <QLabel>

class MicroDisplay : public QLabel
{
    Q_OBJECT
public:
    explicit MicroDisplay(QLabel *parent = 0);
    void setDisplayLabelSize(int width, int height);
    QBitmap createDisplayMask(int count);
    void display();

    void setDisplayParameter(QFont font, QColor color, QPoint point);
    QFont getDisplayFont();
    QColor getDisplayColor();
    QPoint getDisplayPosition();


signals:

public slots:
    void slotSetDisplayFont(QFont font);
    void slotSetDisplayColor(QColor color);
    void slotSetDisplayPosition(QPoint point);


protected:
    void enterEvent(QEvent * event);
    void leaveEvent(QEvent * event);
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

private:
    bool m_bPressed;
    QPoint m_point;
    QColor m_displayColor;
    QFont m_font;
};

#endif // MICRODISPLAY_H
